//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("customers\MMI\Customers.cpp", frmCustomers);
USEFORM("purchases\MMI\PurchaseDlg.cpp", frmPurchaseDlg);
USEFORM("customers\MMI\CustomerDlg.cpp", frmCustDlg);
USEFORM("glasses\MMI\GlassesModelDlg.cpp", frmGlassesModelDlg);
USEFORM("glasses\MMI\GlassesFirmDlg.cpp", frmGlassesFirmDlg);
USEFORM("frameproviders\MMI\FrameProvidersFinance.cpp", frmFrameProvidersFinance);
USEFORM("Main.cpp", frmMain);
USEFORM("invoices\MMI\InvoiceDlg.cpp", frmInvoiceDlg);
USEFORM("invoices\MMI\Invoices.cpp", frmInvoices);
USEFORM("frameproviders\MMI\FrameProviders.cpp", frmFrameProviders);
USEFORM("reports\Customer\CustomerReport.cpp", frmCustomerReport);
USEFORM("reports\Invoices\InvoiceReportDlg.cpp", frmInvoiceReportDlg);
USEFORM("reports\Shipments\ShipmentsReport.cpp", frmShipmentsReport);
USEFORM("reports\Shipments\ShipmentReportDlg.cpp", frmShipmentReportDlg);
USEFORM("reports\Stock\StockDlg.cpp", frmStockDlg);
USEFORM("reports\Stock\StockReport.cpp", frmStockReport);
USEFORM("purchases\MMI\FirmSearchDlg.cpp", frmFirmSearchDlg);
USEFORM("frameproviders\MMI\FrameProviderRefundDlg.cpp", frmFrameProviderRefundDlg);
USEFORM("..\..\common\MMI\Calendar.cpp", frmCalendar);
USEFORM("frameproviders\MMI\FrameProviderDlg.cpp", frmFrameProviderDlg);
USEFORM("providers\MMI\Providers.cpp", frmProviders);
USEFORM("providers\MMI\ProviderDlg.cpp", frmProviderDlg);
USEFORM("glasses\MMI\GlassesFirms.cpp", frmGlassesFirms);
USEFORM("shipment\MMI\ShipmentDlg.cpp", frmShipmentDlg);
USEFORM("frameproviders\MMI\FrameProviderOrderDlg.cpp", frmFrameProviderOrderDlg);
USEFORM("customers\MMI\CheckingDlg.cpp", frmCheckingDlg);
USEFORM("shipment\MMI\Shipments.cpp", frmShipments);
USEFORM("paymenttypes\MMI\PaymentTypes.cpp", frmPaymentTypes);
USEFORM("paymenttypes\MMI\PaymentTypeDlg.cpp", frmPaymentTypeDlg);
USEFORM("reports\Invoices\InvoiceReport2.cpp", frmInvoiceReport);
USEFORM("users\MMI\LoginDlg.cpp", frmLoginDlg);
USEFORM("shipment\MMI\ShipmentDetailsDlg.cpp", frmShipmentDetailsDlg);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
        try
        {
                 Application->Initialize();
                 Application->CreateForm(__classid(TfrmMain), &frmMain);
                 Application->Run();
        }
        catch (Exception &exception)
        {
                 Application->ShowException(&exception);
        }
        catch (...)
        {
                 try
                 {
                         throw Exception("");
                 }
                 catch (Exception &exception)
                 {
                         Application->ShowException(&exception);
                 }
        }
        return 0;
}
//---------------------------------------------------------------------------




